// ****************************************************************************** 
// Copyright     :  Copyright (C) 2018, Hisilicon Technologies Co. Ltd.
// File name     :  cmp_reg_offset_field.h
// Project line  :  K3
// Department    :  K3
// Author        :  Huawei
// Version       :  V100
// Date          :  2015/4/10
// Description   :  HiVcodecV100 VDEC
// Others        :  Generated automatically by nManager V4.2 
// History       :  Huawei 2018/04/10 10:02:42 Create file
// ******************************************************************************

#ifndef __CMP_REG_OFFSET_FIELD_H__
#define __CMP_REG_OFFSET_FIELD_H__

#define CMP_YSTADDR_LEN    32
#define CMP_YSTADDR_OFFSET 0

#define CMP_UVOFFSET_LEN    32
#define CMP_UVOFFSET_OFFSET 0

#define CMP_YOFFSET_2BIT_LEN    32
#define CMP_YOFFSET_2BIT_OFFSET 0

#define CMP_UVOFFSET_2BIT_LEN    32
#define CMP_UVOFFSET_2BIT_OFFSET 0

#define CMP_HEAD_INF_SIZE_LEN    32
#define CMP_HEAD_INF_SIZE_OFFSET 0

#define CMP_LINE_NUM_STADDR_LEN    32
#define CMP_LINE_NUM_STADDR_OFFSET 0

#define CMP_WATERMARK_START_POSE_LEN    32
#define CMP_WATERMARK_START_POSE_OFFSET 0

#define CMP_WATERMARK_END_POSE_LEN    32
#define CMP_WATERMARK_END_POSE_OFFSET 0

#define CMP_YSTRIDE_LEN    20
#define CMP_YSTRIDE_OFFSET 0

#define CMP_UVSTRIDE_LEN    20
#define CMP_UVSTRIDE_OFFSET 0

#define CMP_YSTRIDE_2BIT_LEN    20
#define CMP_YSTRIDE_2BIT_OFFSET 0

#define CMP_CMP_LINE_LEVEL_LEN    32
#define CMP_CMP_LINE_LEVEL_OFFSET 0

#define CMP_FRM_CMP_EN_LEN          1
#define CMP_FRM_CMP_EN_OFFSET       31
#define CMP_LOSS_CMP_EN_LEN         1
#define CMP_LOSS_CMP_EN_OFFSET      30
#define CMP_CMP_LINEAR_MODE_LEN     1
#define CMP_CMP_LINEAR_MODE_OFFSET  29
#define CMP_WATERMARK_EN_LEN        1
#define CMP_WATERMARK_EN_OFFSET     28
#define CMP_PROTOCOL_LEN            4
#define CMP_PROTOCOL_OFFSET         24
#define CMP_Y_BITDEPTH_LEN          4
#define CMP_Y_BITDEPTH_OFFSET       20
#define CMP_C_BITDEPTH_LEN          4
#define CMP_C_BITDEPTH_OFFSET       16
#define CMP_YC_BITDEPTH_8BIT_LEN    1
#define CMP_YC_BITDEPTH_8BIT_OFFSET 8
#define CMP_CTB_SIZE_LEN            3
#define CMP_CTB_SIZE_OFFSET         4
#define CMP_PIC_STRUCTURE_LEN       2
#define CMP_PIC_STRUCTURE_OFFSET    0

#define CMP_PIC_WIDTH_OTHER_PROTOCOL_LEN     11
#define CMP_PIC_WIDTH_OTHER_PROTOCOL_OFFSET  16
#define CMP_PIC_HEIGHT_OTHER_PROTOCOL_LEN    11
#define CMP_PIC_HEIGHT_OTHER_PROTOCOL_OFFSET 0

#define CMP_PIC_WIDTH_H265_PROTOCOL_LEN     15
#define CMP_PIC_WIDTH_H265_PROTOCOL_OFFSET  16
#define CMP_PIC_HEIGHT_H265_PROTOCOL_LEN    15
#define CMP_PIC_HEIGHT_H265_PROTOCOL_OFFSET 0

#define CMP_PIC_WIDTH_IN_SAMPLE_LEN     15
#define CMP_PIC_WIDTH_IN_SAMPLE_OFFSET  16
#define CMP_PIC_HEIGHT_IN_SAMPLE_LEN    15
#define CMP_PIC_HEIGHT_IN_SAMPLE_OFFSET 0

#define CMP_Y_CMP_RATE_MODE_LEN     1
#define CMP_Y_CMP_RATE_MODE_OFFSET  8
#define CMP_UV_CMP_RATE_MODE_LEN    1
#define CMP_UV_CMP_RATE_MODE_OFFSET 7
#define CMP_LST_MSQ_MB_NUM_LEN      3
#define CMP_LST_MSQ_MB_NUM_OFFSET   4
#define CMP_MB_OFFSET_THR_LEN       4
#define CMP_MB_OFFSET_THR_OFFSET    0

#define CMP_O_ICE_SHARE_EXT_LEN    32
#define CMP_O_ICE_SHARE_EXT_OFFSET 0

#define CMP_LOSS_FROM_CMPIP_DEBUG_LEN    32
#define CMP_LOSS_FROM_CMPIP_DEBUG_OFFSET 0

#define CMP_NOCMP_AWCOEF4_LEN    32
#define CMP_NOCMP_AWCOEF4_OFFSET 0

#define CMP_OBUF_AWCOEF4_LEN    32
#define CMP_OBUF_AWCOEF4_OFFSET 0

#define CMP_COMMON_AWCOEF2_LEN    16
#define CMP_COMMON_AWCOEF2_OFFSET 16
#define CMP_COMMON_AWCOEF3_LEN    16
#define CMP_COMMON_AWCOEF3_OFFSET 0

#define CMP_CUR_ST_WIBUF_LEN    1
#define CMP_CUR_ST_WIBUF_OFFSET 29
#define CMP_NXT_ST_WIBUF_LEN    1
#define CMP_NXT_ST_WIBUF_OFFSET 28
#define CMP_CUR_ST_WOBUF_LEN    2
#define CMP_CUR_ST_WOBUF_OFFSET 26
#define CMP_NXT_ST_WOBUF_LEN    2
#define CMP_NXT_ST_WOBUF_OFFSET 24
#define CMP_CUR_ST_OBUF_LEN     4
#define CMP_CUR_ST_OBUF_OFFSET  20
#define CMP_NXT_ST_OBUF_LEN     4
#define CMP_NXT_ST_OBUF_OFFSET  16
#define CMP_CUR_ST_NOCMP_LEN    3
#define CMP_CUR_ST_NOCMP_OFFSET 12
#define CMP_NXT_ST_NOCMO_LEN    3
#define CMP_NXT_ST_NOCMO_OFFSET 8
#define CMP_CUR_ST_WLBUF_LEN    2
#define CMP_CUR_ST_WLBUF_OFFSET 4
#define CMP_NXT_ST_WLBUF_LEN    2
#define CMP_NXT_ST_WLBUF_OFFSET 0

#define CMP_IBUF_FIELD_CNT_LEN         7
#define CMP_IBUF_FIELD_CNT_OFFSET      24
#define CMP_IBUF_FIELD_WPT_LEN         6
#define CMP_IBUF_FIELD_WPT_OFFSET      16
#define CMP_IBUF_FIELD_RPT_LEN         6
#define CMP_IBUF_FIELD_RPT_OFFSET      10
#define CMP_LBUF_CNT_LEN               2
#define CMP_LBUF_CNT_OFFSET            8
#define CMP_I_PIX_DATA_TMP_PCNT_LEN    2
#define CMP_I_PIX_DATA_TMP_PCNT_OFFSET 6
#define CMP_I_PIX_DATA_TMP_TCNT_LEN    2
#define CMP_I_PIX_DATA_TMP_TCNT_OFFSET 4
#define CMP_I_PIX_DATA_TMP_WPT_LEN     1
#define CMP_I_PIX_DATA_TMP_WPT_OFFSET  3
#define CMP_I_PIX_DATA_TMP_RPT_LEN     1
#define CMP_I_PIX_DATA_TMP_RPT_OFFSET  2
#define CMP_LBUF_WPT_LEN               1
#define CMP_LBUF_WPT_OFFSET            1
#define CMP_LBUF_RPT_LEN               1
#define CMP_LBUF_RPT_OFFSET            0

#define CMP_OBUF_COEF_CNT_LEN    3
#define CMP_OBUF_COEF_CNT_OFFSET 28
#define CMP_OBUF_COEF_WPT_LEN    2
#define CMP_OBUF_COEF_WPT_OFFSET 26
#define CMP_OBUF_COEF_RPT_LEN    2
#define CMP_OBUF_COEF_RPT_OFFSET 24
#define CMP_OBUF_CNT_LEN         6
#define CMP_OBUF_CNT_OFFSET      16
#define CMP_OBUF_WADDR_LEN       6
#define CMP_OBUF_WADDR_OFFSET    8
#define CMP_OBUF_RADDR_LEN       6
#define CMP_OBUF_RADDR_OFFSET    0

#define CMP_SGMT_CNT_LEN                   6
#define CMP_SGMT_CNT_OFFSET                26
#define CMP_CMP_IBUF_RD_CNT_LEN            2
#define CMP_CMP_IBUF_RD_CNT_OFFSET         24
#define CMP_OBUF_TX_DATA_CNT_LEN           4
#define CMP_OBUF_TX_DATA_CNT_OFFSET        20
#define CMP_NOCMP_IBUF_RD_CNT_LEN          4
#define CMP_NOCMP_IBUF_RD_CNT_OFFSET       16
#define CMP_NOCMP_LAST_SGMT_CMD_LEN        1
#define CMP_NOCMP_LAST_SGMT_CMD_OFFSET     13
#define CMP_OBUF_LAST_SGMT_CMD_LEN         1
#define CMP_OBUF_LAST_SGMT_CMD_OFFSET      12
#define CMP_TILE_PIC_BOUNDARY_LEN          2
#define CMP_TILE_PIC_BOUNDARY_OFFSET       10
#define CMP_NOCMP_TILE_PIC_BOUNDARY_LEN    2
#define CMP_NOCMP_TILE_PIC_BOUNDARY_OFFSET 8
#define CMP_COMMON_CHRM_EN_LEN             1
#define CMP_COMMON_CHRM_EN_OFFSET          3
#define CMP_IBUF_HAVE_DATA_LEN             1
#define CMP_IBUF_HAVE_DATA_OFFSET          2
#define CMP_IP_HAVE_DATA_LEN               1
#define CMP_IP_HAVE_DATA_OFFSET            1
#define CMP_CMP_HAVE_DATA_LEN              1
#define CMP_CMP_HAVE_DATA_OFFSET           0

#define CMP_I_PIX_DATA_DRDY_LEN        1
#define CMP_I_PIX_DATA_DRDY_OFFSET     25
#define CMP_I_PIX_DATA_DNEED_LEN       1
#define CMP_I_PIX_DATA_DNEED_OFFSET    24
#define CMP_O_BS_DATA_DRDY_LEN         1
#define CMP_O_BS_DATA_DRDY_OFFSET      23
#define CMP_O_BS_DATA_DNEED_LEN        1
#define CMP_O_BS_DATA_DNEED_OFFSET     22
#define CMP_O_CMP_HEAD_DRDY_LEN        1
#define CMP_O_CMP_HEAD_DRDY_OFFSET     21
#define CMP_O_CMP_HEAD_DNEED_LEN       1
#define CMP_O_CMP_HEAD_DNEED_OFFSET    20
#define CMP_LOSS_IN_DATA_DRDY_LEN      1
#define CMP_LOSS_IN_DATA_DRDY_OFFSET   19
#define CMP_LOSS_IN_DATA_DNEED_LEN     1
#define CMP_LOSS_IN_DATA_DNEED_OFFSET  18
#define CMP_LOSS_CMP_DATA_DRDY_LEN     1
#define CMP_LOSS_CMP_DATA_DRDY_OFFSET  17
#define CMP_LOSS_CMP_DATA_DNEED_LEN    1
#define CMP_LOSS_CMP_DATA_DNEED_OFFSET 16
#define CMP_CMP2EMAR_AWLEN_LEN         7
#define CMP_CMP2EMAR_AWLEN_OFFSET      8
#define CMP_CMP2EMAR_AWPROT_LEN        3
#define CMP_CMP2EMAR_AWPROT_OFFSET     4
#define CMP_CMP2EMAR_AWVALID_LEN       1
#define CMP_CMP2EMAR_AWVALID_OFFSET    3
#define CMP_EMAR2CMP_AWREADY_LEN       1
#define CMP_EMAR2CMP_AWREADY_OFFSET    2
#define CMP_CMP2EMAR_WVALID_LEN        1
#define CMP_CMP2EMAR_WVALID_OFFSET     1
#define CMP_EMAR2CMP_WREADY_LEN        1
#define CMP_EMAR2CMP_WREADY_OFFSET     0

#define CMP_CMP2EMAR_AWCOEF0_LEN    32
#define CMP_CMP2EMAR_AWCOEF0_OFFSET 0

#define CMP_CMP2EMAR_AWCOEF1_LEN    16
#define CMP_CMP2EMAR_AWCOEF1_OFFSET 16
#define CMP_CMP2EMAR_AWCOEF2_LEN    16
#define CMP_CMP2EMAR_AWCOEF2_OFFSET 0

#define CMP_CMP2EMAR_AWCOEF3_LEN    16
#define CMP_CMP2EMAR_AWCOEF3_OFFSET 16
#define CMP_CMP2EMAR_WSTRB_LEN      16
#define CMP_CMP2EMAR_WSTRB_OFFSET   0

#define CMP_SGMT_OVERFLOW_CNT_LEN    20
#define CMP_SGMT_OVERFLOW_CNT_OFFSET 0

#endif // __CMP_REG_OFFSET_FIELD_H__
